import request from "@/utils/request";

//角色分页查询
export const queryRolePageApi = (data) =>
  request.get("/roles", { params: data });

//添加角色
export const addRoleApi = (data) => request.post("/roles", data);

//根据id查询回显
export const queryRoleByIdApi = (id) => request.get(`/roles/${id}`);

//修改角色
export const updateRoleApi = (data) => request.put("/roles", data);

//删除角色
export const deleteRoleApi = (id) => request.delete(`/roles/${id}`);
